home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 69 6d 61 67 65 |Path: ne|ws.image|
|00000010| 2e 64 6b 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |.dk!usen|et.From:|
|00000020| 20 50 6f 75 6c 20 54 68 | 6f 6d 61 73 20 4c 6f 6d | Poul Th|omas Lom|
|00000030| 68 6f 6c 74 20 3c 64 61 | 76 69 6e 63 69 40 69 6d |holt <da|vinci@im|
|00000040| 61 67 65 2e 64 6b 3e 0a | 4e 65 77 73 67 72 6f 75 |age.dk>.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 2b |ps: comp|.lang.c+|
|00000060| 2b 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 4f |+.Subjec|t: Re: O|
|00000070| 62 6a 65 63 74 20 63 6f | 6e 73 74 75 63 74 69 6f |bject co|nstuctio|
|00000080| 6e 20 69 6e 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |n in fun|ction ca|
|00000090| 6c 6c 2e 0a 44 61 74 65 | 3a 20 53 75 6e 2c 20 31 |ll..Date|: Sun, 1|
|000000a0| 37 20 4d 61 72 20 31 39 | 39 36 20 31 38 3a 33 34 |7 Mar 19|96 18:34|
|000000b0| 3a 32 37 20 2b 30 31 30 | 30 0a 4f 72 67 61 6e 69 |:27 +010|0.Organi|
|000000c0| 7a 61 74 69 6f 6e 3a 20 | 44 61 20 56 69 6e 63 69 |zation: |Da Vinci|
|000000d0| 20 44 61 74 61 0a 4d 65 | 73 73 61 67 65 2d 49 44 | Data.Me|ssage-ID|
|000000e0| 3a 20 3c 33 31 34 43 34 | 44 32 33 2e 31 41 34 30 |: <314C4|D23.1A40|
|000000f0| 40 69 6d 61 67 65 2e 64 | 6b 3e 0a 52 65 66 65 72 |@image.d|k>.Refer|
|00000100| 65 6e 63 65 73 3a 20 3c | 34 69 63 6d 71 68 24 38 |ences: <|4icmqh$8|
|00000110| 67 36 40 69 6e 73 6f 73 | 66 31 2e 6e 65 74 69 6e |g6@insos|f1.netin|
|00000120| 73 2e 6e 65 74 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |s.net>.N|NTP-Post|
|00000130| 69 6e 67 2d 48 6f 73 74 | 3a 20 69 70 36 33 2e 69 |ing-Host|: ip63.i|
|00000140| 6d 61 67 65 2e 64 6b 0a | 4d 69 6d 65 2d 56 65 72 |mage.dk.|Mime-Ver|
|00000150| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000160| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|00000170| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|00000180| 73 63 69 69 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |scii.Con|tent-Tra|
|00000190| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001a0| 37 62 69 74 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |7bit.X-M|ailer: M|
|000001b0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 20 28 57 69 6e 4e |ozilla 2|.0 (WinN|
|000001c0| 54 3b 20 49 29 0a 54 6f | 3a 20 48 61 72 6f 6c 64 |T; I).To|: Harold|
|000001d0| 20 48 6f 77 65 20 3c 68 | 68 6f 77 65 40 74 72 67 | Howe <h|howe@trg|
|000001e0| 6e 65 74 2e 63 6f 6d 3e | 0a 0a 48 61 72 6f 6c 64 |net.com>|..Harold|
|000001f0| 20 48 6f 77 65 20 77 72 | 6f 74 65 3a 0a 3e 20 0a | Howe wr|ote:.> .|
|00000200| 3e 20 47 72 65 65 74 69 | 6e 67 73 2e 0a 3e 20 0a |> Greeti|ngs..> .|
|00000210| 3e 20 49 20 6e 65 65 64 | 20 68 65 6c 70 2e 20 20 |> I need| help. |
|00000220| 49 66 20 61 6e 20 6f 62 | 6a 65 63 74 20 69 73 20 |If an ob|ject is |
|00000230| 63 6f 6e 74 72 75 63 74 | 65 64 20 69 6e 20 61 20 |contruct|ed in a |
|00000240| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 2c 20 68 |function| call, h|
|00000250| 6f 77 20 6c 6f 6e 67 20 | 64 6f 65 73 20 69 74 0a |ow long |does it.|
|00000260| 3e 20 65 78 69 73 74 2e | 20 20 46 6f 72 20 65 78 |> exist.| For ex|
|00000270| 61 6d 70 6c 65 2c 20 28 | 74 68 69 73 20 69 73 20 |ample, (|this is |
|00000280| 6e 6f 74 20 77 68 61 74 | 20 49 20 61 6d 20 64 6f |not what| I am do|
|00000290| 69 6e 67 2c 20 62 75 74 | 20 69 74 20 69 6c 6c 75 |ing, but| it illu|
|000002a0| 73 74 72 61 74 65 73 20 | 74 68 65 0a 3e 20 70 6f |strates |the.> po|
|000002b0| 69 6e 74 29 2e 0a 3e 20 | 0a 3e 20 63 6c 61 73 73 |int)..> |.> class|
|000002c0| 20 54 43 6f 72 6e 65 72 | 73 0a 3e 20 20 20 7b 0a | TCorner|s.> {.|
|000002d0| 3e 20 20 20 70 75 62 6c | 69 63 3a 0a 3e 20 20 20 |> publ|ic:.> |
|000002e0| 20 20 69 6e 74 20 77 2c | 78 2c 79 2c 7a 3b 0a 3e | int w,|x,y,z;.>|
|000002f0| 20 20 20 20 20 54 43 6f | 72 6e 65 72 73 28 20 69 | TCo|rners( i|
|00000300| 6e 74 20 61 2c 20 69 6e | 74 20 62 2c 20 69 6e 74 |nt a, in|t b, int|
|00000310| 20 63 2c 20 69 6e 74 20 | 64 29 0a 3e 20 20 20 20 | c, int |d).> |
|00000320| 20 20 20 7b 20 77 3d 61 | 3b 20 20 20 78 3d 62 3b | { w=a|; x=b;|
|00000330| 20 79 3d 63 3b 20 20 7a | 3d 64 3b 7d 0a 3e 20 20 | y=c; z|=d;}.> |
|00000340| 20 7d 0a 3e 20 0a 3e 20 | 76 6f 69 64 20 64 69 73 | }.> .> |void dis|
|00000350| 70 6c 61 79 5f 63 6f 6f | 72 64 69 6e 61 74 65 73 |play_coo|rdinates|
|00000360| 28 54 43 6f 72 6e 65 72 | 73 20 63 6f 72 6e 65 72 |(TCorner|s corner|
|00000370| 73 29 0a 3e 20 20 20 7b | 0a 3e 20 20 20 63 6f 75 |s).> {|.> cou|
|00000380| 74 20 3c 3c 20 22 63 6f | 72 6e 65 72 73 20 61 72 |t << "co|rners ar|
|00000390| 65 22 20 3c 3c 20 63 6f | 72 6e 65 72 73 2e 77 20 |e" << co|rners.w |
|000003a0| 3c 3c 20 63 6f 72 6e 65 | 72 73 2e 78 0a 3e 20 20 |<< corne|rs.x.> |
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003c0| 20 20 20 20 20 20 20 3c | 3c 20 63 6f 72 6e 65 72 | <|< corner|
|000003d0| 73 2e 79 20 3c 3c 20 63 | 6f 72 6e 65 72 73 2e 7a |s.y << c|orners.z|
|000003e0| 20 3b 0a 3e 20 20 20 7d | 0a 3e 20 0a 3e 20 69 6e | ;.> }|.> .> in|
|000003f0| 74 20 6d 61 69 6e 28 76 | 6f 69 64 29 0a 3e 20 20 |t main(v|oid).> |
|00000400| 20 7b 0a 3e 20 20 20 64 | 69 73 70 6c 61 79 5f 63 | {.> d|isplay_c|
|00000410| 6f 6f 72 64 69 6e 61 74 | 65 73 28 54 43 6f 72 6e |oordinat|es(TCorn|
|00000420| 65 72 73 28 31 2c 31 2c | 32 30 2c 31 30 29 29 3b |ers(1,1,|20,10));|
|00000430| 0a 3e 20 20 20 64 69 73 | 70 6c 61 79 5f 63 6f 6f |.> dis|play_coo|
|00000440| 72 64 69 6e 61 74 65 73 | 28 54 43 6f 72 6e 65 72 |rdinates|(TCorner|
|00000450| 73 28 31 2c 35 2c 32 35 | 2c 31 35 29 29 3b 0a 3e |s(1,5,25|,15));.>|
|00000460| 20 20 20 64 69 73 70 6c | 61 79 5f 63 6f 6f 72 64 | displ|ay_coord|
|00000470| 69 6e 61 74 65 73 28 54 | 43 6f 72 6e 65 72 73 28 |inates(T|Corners(|
|00000480| 32 2c 35 2c 32 30 2c 31 | 30 29 29 3b 0a 3e 20 20 |2,5,20,1|0));.> |
|00000490| 20 7d 0a 3e 20 0a 3e 20 | 48 6f 77 20 6d 61 6e 79 | }.> .> |How many|
|000004a0| 20 6f 62 6a 65 63 74 73 | 20 65 78 69 73 74 20 61 | objects| exist a|
|000004b0| 74 20 74 68 65 20 70 72 | 6f 67 72 61 6d 73 20 65 |t the pr|ograms e|
|000004c0| 6e 64 3f 20 20 41 72 65 | 20 74 68 65 20 6f 62 6a |nd? Are| the obj|
|000004d0| 65 63 74 73 20 63 72 65 | 61 74 65 64 20 66 6f 72 |ects cre|ated for|
|000004e0| 20 74 68 65 0a 3e 20 66 | 75 6e 63 74 69 6f 6e 20 | the.> f|unction |
|000004f0| 63 61 6c 6c 2c 20 74 68 | 65 6e 20 6e 75 6b 65 64 |call, th|en nuked|
|00000500| 20 61 66 74 65 72 77 61 | 72 64 73 3f 20 20 49 20 | afterwa|rds? I |
|00000510| 74 68 69 6e 6b 20 74 68 | 65 79 20 68 61 6e 67 20 |think th|ey hang |
|00000520| 61 72 6f 75 6e 64 2c 20 | 69 6e 20 66 61 63 74 20 |around, |in fact |
|00000530| 49 0a 3e 20 6b 6e 6f 77 | 20 74 68 65 79 20 68 61 |I.> know| they ha|
|00000540| 6e 67 20 61 72 6f 75 6e | 64 20 62 65 63 61 75 73 |ng aroun|d becaus|
|00000550| 65 20 69 66 20 49 20 63 | 61 6c 6c 20 74 68 65 20 |e if I c|all the |
|00000560| 64 69 73 70 6c 61 79 20 | 67 75 79 20 61 62 6f 75 |display |guy abou|
|00000570| 74 20 31 30 30 20 74 69 | 6d 65 73 20 74 68 65 0a |t 100 ti|mes the.|
|00000580| 3e 20 70 72 6f 67 72 61 | 6d 20 66 69 6e 61 6c 6c |> progra|m finall|
|00000590| 79 20 62 6c 6f 77 73 20 | 75 70 2e 20 20 49 20 77 |y blows |up. I w|
|000005a0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 75 73 65 |ould lik|e to use|
|000005b0| 20 74 68 69 73 20 73 79 | 6e 74 61 78 20 69 66 20 | this sy|ntax if |
|000005c0| 70 6f 73 73 69 62 6c 65 | 20 69 6e 20 74 68 65 0a |possible| in the.|
|000005d0| 3e 20 72 65 61 6c 20 70 | 72 6f 67 72 61 6d 20 74 |> real p|rogram t|
|000005e0| 68 61 74 20 49 20 61 6d | 20 77 72 69 74 69 6e 67 |hat I am| writing|
|000005f0| 2e 0a 3e 20 0a 3e 20 41 | 6e 79 20 73 75 67 67 65 |..> .> A|ny sugge|
|00000600| 73 74 69 6f 6e 73 20 77 | 6f 75 6c 64 20 62 65 20 |stions w|ould be |
|00000610| 61 70 70 72 65 63 69 61 | 74 65 64 2e 0a 3e 20 48 |apprecia|ted..> H|
|00000620| 61 72 6f 6c 64 20 48 6f | 77 65 0a 3e 20 68 68 6f |arold Ho|we.> hho|
|00000630| 77 65 40 74 72 67 6e 65 | 74 2e 63 6f 6d 0a 0a 0a |we@trgne|t.com...|
|00000640| 54 68 65 20 6f 62 6a 65 | 63 74 73 20 61 72 65 20 |The obje|cts are |
|00000650| 63 72 65 61 74 65 64 20 | 74 65 6d 70 6f 72 61 72 |created |temporar|
|00000660| 69 6c 79 20 62 65 20 73 | 75 72 65 20 61 62 6f 75 |ily be s|ure abou|
|00000670| 74 20 74 68 61 74 2c 20 | 61 6e 64 20 0a 68 65 6e |t that, |and .hen|
|00000680| 63 65 20 64 6f 65 73 20 | 6e 6f 74 20 65 78 69 73 |ce does |not exis|
|00000690| 74 2c 20 77 68 65 6e 20 | 74 68 65 20 70 72 6f 67 |t, when |the prog|
|000006a0| 72 61 6d 20 74 65 72 6d | 69 6e 61 74 65 73 2e 20 |ram term|inates. |
|000006b0| 48 6f 77 65 76 65 72 20 | 69 74 20 0a 77 6f 75 6c |However |it .woul|
|000006c0| 64 20 62 65 20 61 20 67 | 6f 6f 64 20 69 64 65 61 |d be a g|ood idea|
|000006d0| 20 74 6f 20 64 65 63 6c | 61 72 65 20 74 68 65 20 | to decl|are the |
|000006e0| 64 69 73 70 6c 61 79 5f | 63 6f 6f 72 64 69 6e 61 |display_|coordina|
|000006f0| 74 65 73 20 74 6f 20 74 | 61 6b 65 20 0a 61 20 22 |tes to t|ake .a "|
|00000700| 63 6f 6e 73 74 20 54 43 | 6f 72 6e 65 72 73 26 22 |const TC|orners&"|
|00000710| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 61 6e 20 6f | instead| of an o|
|00000720| 62 6a 65 63 74 2e 20 0a | 0a 52 65 67 61 72 64 73 |bject. .|.Regards|
|00000730| 20 66 72 6f 6d 0a 50 6f | 75 6c 20 54 68 6f 6d 61 | from.Po|ul Thoma|
|00000740| 73 20 4c 6f 6d 68 6f 6c | 74 0a |s Lomhol|t. |
+--------+-------------------------+-------------------------+--------+--------+